-- GENERATED SPELL FOR [Warlord Krellian] --


function spell0_8408(pUnit, Event) --@Demoralizing Roar,Self--
pUnit:FullCastSpellOnTarget(10968,pUnit)
pUnit:RegisterEvent('Sorts_8408', 30323, 1)
end

function spell1_8408(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8408', 580, 1)
end

function Sorts_8408(pUnit, Event)
local choix_sorts_8408 = math.random(0, 1)
if choix_sorts_8408 == 0 then
pUnit:RegisterEvent('spell0_8408', 1, 1)
end
if choix_sorts_8408 == 1 then
pUnit:RegisterEvent('spell1_8408', 1, 1)
end
end

function mob8408_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8408', math.random(1500, 3000), 1)
end

function mob8408_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8408_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8408_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8408, 1, 'mob8408_Action')
RegisterUnitEvent(8408, 2, 'mob8408_Leave')
RegisterUnitEvent(8408, 3, 'mob8408_Kill')
RegisterUnitEvent(8408, 4, 'mob8408_Die')
